function [ out ] = transferFunction( X,A )
%TRANSFERFUNCTION Summary of this function goes here
%   Detailed explanation goes here
 out = cos(X(1,:)) + sin(X(2,:)) + sin(X(3,:)).*sin(X(3,:)) + cos(X(4,:)).*cos(X(4,:))  +  0.5*A.*A;
%out = X(1,:) + X(2,:).*X(2,:).*X(2,:) + X(3,:).*X(3,:).*X(3,:).*X(3,:) + X(4,:).*X(4,:).*X(4,:).*X(4,:).*X(4,:)  +  0.5*A.*A;
end

